package com.daxiong.isp.common;

import com.daxiong.isp.admin.IOrderForAdmin;
import com.daxiong.isp.otherSys.IOrderForOtherSys;
import com.daxiong.isp.portal.IOrderForPortal;

import java.util.ArrayList;
import java.util.List;

/**
 * 订单接口
 *
 * @author sunyanxiong
 * @date 2017/4/22
 */
public class Order implements IOrderForPortal, IOrderForOtherSys, IOrderForAdmin {

    public static IOrderForPortal getOrderForPortal(){
        return new Order();
    }

    public static IOrderForOtherSys getOrderForOtherSys(){
        return new Order();
    }

    public static IOrderForAdmin getOrderForAdmin(){
        return new Order();
    }

    public Long insetOrder(Object object) {
        System.out.println("save object...");
        return 1L;
    }

    public Long updateOrder(Object object) {
        System.out.println("update object...");
        return 1L;
    }

    public void delete(Long id) {
        System.out.println("delete ...");
    }

    public List<Object> getOrder() {
        System.out.println("query order...");
        return new ArrayList<Object>();
    }
}
